cmake_minimum_required(VERSION 2.8.11)

project(addressBook)

# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)

# Find the QtWidgets library  , it will find header file  and the lib
find_package(Qt5Widgets)

#set_target_properties(Qt5::Widgets   PROPERTIES   IMPORT_SUFFIX   ".a")
# Tell CMake to create the helloworld executable
add_executable(addressBook WIN32
    main.cpp
    common.hpp
	AddDialog.cpp
	AddressWidget.cpp
	Contact.cpp
	MainWindow.cpp
	NewAddressTab.cpp
	TableModel.cpp
	)

# Use the Widgets module from Qt 5.
target_link_libraries(addressBook Qt5::Widgets)
